package org.zhu.default_interface;

/**
 * @author yingzhi zhu
 *         date 2017/12/6.
 *    java8 接口default默认方法 静态方法练习
 */
public class Main {
    public static void main(String[] args) {
        MyInterface m = new MyInterFaceImpl();
        System.out.println(String.format("加法结果为%d",m.addtion(1,2)));
        System.out.println(String.format("乘法结果为%d",m.multiplication(1,2)));
        System.out.println(String.format("减法结果为%d",MyInterface.subtraction(1,2)));
    }
}
